import request from "@/utils/request.js";

/**
 * 获取关注的人信息
 * 
 */
export function getAttentionList() {
	return request.get(
		"follow/allFollowUsers", {}, {
			noAuth: true
		});
}

/**
 * 获取粉丝的人信息
 * 
 */
export function getFansList() {
	return request.get(
		"follow/allFans", {}, {
			noAuth: true
		});
}

/**
 * 关注取关人
 * 
 */
export function followUser({
	uid,
	flag
}) {
	return request.put(
		`follow/${uid}/${flag}`, {}, {
			noAuth: true
		});
}